package com.example.toolproject.demo.service.serviceimpl;

import com.example.toolproject.demo.domain.Role;
import com.example.toolproject.demo.mapper.RoleMapper;
import com.example.toolproject.demo.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName RoleServiceImpl
 * @Description TODO
 * @Author lvyongwei
 * @Date 2020-07-07 10:42
 **/
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    /**
     * 获取所有角色信息
     * @return
     */
    @Override
    public List<Role> getAllRole() {
        return roleMapper.getAllRole();
    }
}
